﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace NHibernateSampleMVC3.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            BLM.CustomerFactory cf = new BLM.CustomerFactory();
            ViewBag.Message = "Welcome to ASP.NET MVC!";
            //for (int i = 0; i < 20;i++ )
            //    new BLM.CustomerFactory().SaveorUpdate(new DOM.Customer { FirstName = "Ratko"+i, LastName = "Petrushevski"+i });
            DOM.Customer c = cf.getCustomerById(10);
            IList<DOM.Customer> cust = cf.LoadAll();
            //cf.Delete(c);


            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
